Optimal. Leaf size=174 \[ \frac {35 b^3 (9 A b-8 a B)}{64 a^5 \sqrt {a+b x}}-\frac {A}{4 a x^4 \sqrt {a+b x}}+\frac {9 A b-8 a B}{24 a^2 x^3 \sqrt {a+b x}}-\frac {7 b (9 A b-8 a B)}{96 a^3 x^2 \sqrt {a+b x}}+\frac {35 b^2 (9 A b-8 a B)}{192 a^4 x \sqrt {a+b x}}-\frac {35 b^3 (9 A b-8 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{64 a^{11/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {79, 44, 53, 65,
214} \begin {gather*} -\frac {35 b^3 (9 A b-8 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{64 a^{11/2}}+\frac {35 b^3 (9 A b-8 a B)}{64 a^5 \sqrt {a+b x}}+\frac {35 b^2 (9 A b-8 a B)}{192 a^4 x \sqrt {a+b x}}-\frac {7 b (9 A b-8 a B)}{96 a^3 x^2 \sqrt {a+b x}}+\frac {9 A b-8 a B}{24 a^2 x^3 \sqrt {a+b x}}-\frac {A}{4 a x^4 \sqrt {a+b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 53
Rule 65
Rule 79
Rule 214
Rubi steps
\begin {align*} \int \frac {A+B x}{x^5 (a+b x)^{3/2}} \, dx &=-\frac {A}{4 a x^4 \sqrt {a+b x}}+\frac {\left (-\frac {9 A b}{2}+4 a B\right ) \int \frac {1}{x^4 (a+b x)^{3/2}} \, dx}{4 a}\\ &=-\frac {A}{4 a x^4 \sqrt {a+b x}}-\frac {9 A b-8 a B}{4 a^2 x^3 \sqrt {a+b x}}-\frac {(7 (9 A b-8 a B)) \int \frac {1}{x^4 \sqrt {a+b x}} \, dx}{8 a^2}\\ &=-\frac {A}{4 a x^4 \sqrt {a+b x}}-\frac {9 A b-8 a B}{4 a^2 x^3 \sqrt {a+b x}}+\frac {7 (9 A b-8 a B) \sqrt {a+b x}}{24 a^3 x^3}+\frac {(35 b (9 A b-8 a B)) \int \frac {1}{x^3 \sqrt {a+b x}} \, dx}{48 a^3}\\ &=-\frac {A}{4 a x^4 \sqrt {a+b x}}-\frac {9 A b-8 a B}{4 a^2 x^3 \sqrt {a+b x}}+\frac {7 (9 A b-8 a B) \sqrt {a+b x}}{24 a^3 x^3}-\frac {35 b (9 A b-8 a B) \sqrt {a+b x}}{96 a^4 x^2}-\frac {\left (35 b^2 (9 A b-8 a B)\right ) \int \frac {1}{x^2 \sqrt {a+b x}} \, dx}{64 a^4}\\ &=-\frac {A}{4 a x^4 \sqrt {a+b x}}-\frac {9 A b-8 a B}{4 a^2 x^3 \sqrt {a+b x}}+\frac {7 (9 A b-8 a B) \sqrt {a+b x}}{24 a^3 x^3}-\frac {35 b (9 A b-8 a B) \sqrt {a+b x}}{96 a^4 x^2}+\frac {35 b^2 (9 A b-8 a B) \sqrt {a+b x}}{64 a^5 x}+\frac {\left (35 b^3 (9 A b-8 a B)\right ) \int \frac {1}{x \sqrt {a+b x}} \, dx}{128 a^5}\\ &=-\frac {A}{4 a x^4 \sqrt {a+b x}}-\frac {9 A b-8 a B}{4 a^2 x^3 \sqrt {a+b x}}+\frac {7 (9 A b-8 a B) \sqrt {a+b x}}{24 a^3 x^3}-\frac {35 b (9 A b-8 a B) \sqrt {a+b x}}{96 a^4 x^2}+\frac {35 b^2 (9 A b-8 a B) \sqrt {a+b x}}{64 a^5 x}+\frac {\left (35 b^2 (9 A b-8 a B)\right ) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x}\right )}{64 a^5}\\ &=-\frac {A}{4 a x^4 \sqrt {a+b x}}-\frac {9 A b-8 a B}{4 a^2 x^3 \sqrt {a+b x}}+\frac {7 (9 A b-8 a B) \sqrt {a+b x}}{24 a^3 x^3}-\frac {35 b (9 A b-8 a B) \sqrt {a+b x}}{96 a^4 x^2}+\frac {35 b^2 (9 A b-8 a B) \sqrt {a+b x}}{64 a^5 x}-\frac {35 b^3 (9 A b-8 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{64 a^{11/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.30, size = 131, normalized size = 0.75 \begin {gather*} \frac {945 A b^4 x^4+105 a b^3 x^3 (3 A-8 B x)-16 a^4 (3 A+4 B x)+8 a^3 b x (9 A+14 B x)-14 a^2 b^2 x^2 (9 A+20 B x)}{192 a^5 x^4 \sqrt {a+b x}}+\frac {35 b^3 (-9 A b+8 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{64 a^{11/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 148, normalized size = 0.85
method | result | size |
risch | \(-\frac {\sqrt {b x +a}\, \left (-561 A \,b^{3} x^{3}+456 B a \,b^{2} x^{3}+246 a A \,b^{2} x^{2}-176 B \,a^{2} b \,x^{2}-120 a^{2} A b x +64 a^{3} B x +48 a^{3} A \right )}{192 a^{5} x^{4}}+\frac {b^{3} \left (-\frac {2 \left (-128 A b +128 B a \right )}{\sqrt {b x +a}}-\frac {2 \left (315 A b -280 B a \right ) \arctanh \left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{\sqrt {a}}\right )}{128 a^{5}}\) | \(131\) |
derivativedivides | \(2 b^{3} \left (-\frac {\frac {\left (-\frac {187 A b}{128}+\frac {19 B a}{16}\right ) \left (b x +a \right )^{\frac {7}{2}}+\left (\frac {643}{128} a b A -\frac {193}{48} a^{2} B \right ) \left (b x +a \right )^{\frac {5}{2}}+\left (-\frac {765}{128} a^{2} b A +\frac {223}{48} a^{3} B \right ) \left (b x +a \right )^{\frac {3}{2}}+\left (\frac {325}{128} A \,a^{3} b -\frac {29}{16} a^{4} B \right ) \sqrt {b x +a}}{b^{4} x^{4}}+\frac {35 \left (9 A b -8 B a \right ) \arctanh \left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{128 \sqrt {a}}}{a^{5}}-\frac {-A b +B a}{a^{5} \sqrt {b x +a}}\right )\) | \(148\) |
default | \(2 b^{3} \left (-\frac {\frac {\left (-\frac {187 A b}{128}+\frac {19 B a}{16}\right ) \left (b x +a \right )^{\frac {7}{2}}+\left (\frac {643}{128} a b A -\frac {193}{48} a^{2} B \right ) \left (b x +a \right )^{\frac {5}{2}}+\left (-\frac {765}{128} a^{2} b A +\frac {223}{48} a^{3} B \right ) \left (b x +a \right )^{\frac {3}{2}}+\left (\frac {325}{128} A \,a^{3} b -\frac {29}{16} a^{4} B \right ) \sqrt {b x +a}}{b^{4} x^{4}}+\frac {35 \left (9 A b -8 B a \right ) \arctanh \left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{128 \sqrt {a}}}{a^{5}}-\frac {-A b +B a}{a^{5} \sqrt {b x +a}}\right )\) | \(148\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 216, normalized size = 1.24 \begin {gather*} -\frac {1}{384} \, b^{4} {\left (\frac {2 \, {\left (384 \, B a^{5} - 384 \, A a^{4} b + 105 \, {\left (8 \, B a - 9 \, A b\right )} {\left (b x + a\right )}^{4} - 385 \, {\left (8 \, B a^{2} - 9 \, A a b\right )} {\left (b x + a\right )}^{3} + 511 \, {\left (8 \, B a^{3} - 9 \, A a^{2} b\right )} {\left (b x + a\right )}^{2} - 279 \, {\left (8 \, B a^{4} - 9 \, A a^{3} b\right )} {\left (b x + a\right )}\right )}}{{\left (b x + a\right )}^{\frac {9}{2}} a^{5} b - 4 \, {\left (b x + a\right )}^{\frac {7}{2}} a^{6} b + 6 \, {\left (b x + a\right )}^{\frac {5}{2}} a^{7} b - 4 \, {\left (b x + a\right )}^{\frac {3}{2}} a^{8} b + \sqrt {b x + a} a^{9} b} + \frac {105 \, {\left (8 \, B a - 9 \, A b\right )} \log \left (\frac {\sqrt {b x + a} - \sqrt {a}}{\sqrt {b x + a} + \sqrt {a}}\right )}{a^{\frac {11}{2}} b}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.17, size = 377, normalized size = 2.17 \begin {gather*} \left [-\frac {105 \, {\left ({\left (8 \, B a b^{4} - 9 \, A b^{5}\right )} x^{5} + {\left (8 \, B a^{2} b^{3} - 9 \, A a b^{4}\right )} x^{4}\right )} \sqrt {a} \log \left (\frac {b x - 2 \, \sqrt {b x + a} \sqrt {a} + 2 \, a}{x}\right ) + 2 \, {\left (48 \, A a^{5} + 105 \, {\left (8 \, B a^{2} b^{3} - 9 \, A a b^{4}\right )} x^{4} + 35 \, {\left (8 \, B a^{3} b^{2} - 9 \, A a^{2} b^{3}\right )} x^{3} - 14 \, {\left (8 \, B a^{4} b - 9 \, A a^{3} b^{2}\right )} x^{2} + 8 \, {\left (8 \, B a^{5} - 9 \, A a^{4} b\right )} x\right )} \sqrt {b x + a}}{384 \, {\left (a^{6} b x^{5} + a^{7} x^{4}\right )}}, -\frac {105 \, {\left ({\left (8 \, B a b^{4} - 9 \, A b^{5}\right )} x^{5} + {\left (8 \, B a^{2} b^{3} - 9 \, A a b^{4}\right )} x^{4}\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {b x + a} \sqrt {-a}}{a}\right ) + {\left (48 \, A a^{5} + 105 \, {\left (8 \, B a^{2} b^{3} - 9 \, A a b^{4}\right )} x^{4} + 35 \, {\left (8 \, B a^{3} b^{2} - 9 \, A a^{2} b^{3}\right )} x^{3} - 14 \, {\left (8 \, B a^{4} b - 9 \, A a^{3} b^{2}\right )} x^{2} + 8 \, {\left (8 \, B a^{5} - 9 \, A a^{4} b\right )} x\right )} \sqrt {b x + a}}{192 \, {\left (a^{6} b x^{5} + a^{7} x^{4}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 180.26, size = 301, normalized size = 1.73 \begin {gather*} A \left (- \frac {1}{4 a \sqrt {b} x^{\frac {9}{2}} \sqrt {\frac {a}{b x} + 1}} + \frac {3 \sqrt {b}}{8 a^{2} x^{\frac {7}{2}} \sqrt {\frac {a}{b x} + 1}} - \frac {21 b^{\frac {3}{2}}}{32 a^{3} x^{\frac {5}{2}} \sqrt {\frac {a}{b x} + 1}} + \frac {105 b^{\frac {5}{2}}}{64 a^{4} x^{\frac {3}{2}} \sqrt {\frac {a}{b x} + 1}} + \frac {315 b^{\frac {7}{2}}}{64 a^{5} \sqrt {x} \sqrt {\frac {a}{b x} + 1}} - \frac {315 b^{4} \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} \sqrt {x}} \right )}}{64 a^{\frac {11}{2}}}\right ) + B \left (- \frac {1}{3 a \sqrt {b} x^{\frac {7}{2}} \sqrt {\frac {a}{b x} + 1}} + \frac {7 \sqrt {b}}{12 a^{2} x^{\frac {5}{2}} \sqrt {\frac {a}{b x} + 1}} - \frac {35 b^{\frac {3}{2}}}{24 a^{3} x^{\frac {3}{2}} \sqrt {\frac {a}{b x} + 1}} - \frac {35 b^{\frac {5}{2}}}{8 a^{4} \sqrt {x} \sqrt {\frac {a}{b x} + 1}} + \frac {35 b^{3} \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} \sqrt {x}} \right )}}{8 a^{\frac {9}{2}}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.78, size = 197, normalized size = 1.13 \begin {gather*} -\frac {35 \, {\left (8 \, B a b^{3} - 9 \, A b^{4}\right )} \arctan \left (\frac {\sqrt {b x + a}}{\sqrt {-a}}\right )}{64 \, \sqrt {-a} a^{5}} - \frac {2 \, {\left (B a b^{3} - A b^{4}\right )}}{\sqrt {b x + a} a^{5}} - \frac {456 \, {\left (b x + a\right )}^{\frac {7}{2}} B a b^{3} - 1544 \, {\left (b x + a\right )}^{\frac {5}{2}} B a^{2} b^{3} + 1784 \, {\left (b x + a\right )}^{\frac {3}{2}} B a^{3} b^{3} - 696 \, \sqrt {b x + a} B a^{4} b^{3} - 561 \, {\left (b x + a\right )}^{\frac {7}{2}} A b^{4} + 1929 \, {\left (b x + a\right )}^{\frac {5}{2}} A a b^{4} - 2295 \, {\left (b x + a\right )}^{\frac {3}{2}} A a^{2} b^{4} + 975 \, \sqrt {b x + a} A a^{3} b^{4}}{192 \, a^{5} b^{4} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.46, size = 207, normalized size = 1.19 \begin {gather*} \frac {\frac {2\,\left (A\,b^4-B\,a\,b^3\right )}{a}-\frac {93\,\left (9\,A\,b^4-8\,B\,a\,b^3\right )\,\left (a+b\,x\right )}{64\,a^2}+\frac {511\,\left (9\,A\,b^4-8\,B\,a\,b^3\right )\,{\left (a+b\,x\right )}^2}{192\,a^3}-\frac {385\,\left (9\,A\,b^4-8\,B\,a\,b^3\right )\,{\left (a+b\,x\right )}^3}{192\,a^4}+\frac {35\,\left (9\,A\,b^4-8\,B\,a\,b^3\right )\,{\left (a+b\,x\right )}^4}{64\,a^5}}{{\left (a+b\,x\right )}^{9/2}-4\,a\,{\left (a+b\,x\right )}^{7/2}+a^4\,\sqrt {a+b\,x}-4\,a^3\,{\left (a+b\,x\right )}^{3/2}+6\,a^2\,{\left (a+b\,x\right )}^{5/2}}-\frac {35\,b^3\,\mathrm {atanh}\left (\frac {\sqrt {a+b\,x}}{\sqrt {a}}\right )\,\left (9\,A\,b-8\,B\,a\right )}{64\,a^{11/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________